<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>find</title>
</head>
<body>
<script>
    let arr = [
        {
            id: 1,
            name: "lisi",
            age: 20
        },
        {
            id: 2,
            name: "li",
            age: 20
        }, {
            id: 1,
            name: "lisi",
            age: 20
        }, {
            id: 3,
            name: "lisi",
            age: 20
        }
    ];
    const result = arr.find(arr=> arr.id === 2);
    console.log(result);
</script>
</body>
</html>